/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoexam.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.campusinfoexam.entity.CampusinfoServant;
import com.lczyfz.campusinfo.modules.campusinfoexam.dao.CampusinfoServantDao;

/**
 * 公务员考试报名Service
 * @author zms
 * @version 2018-04-18
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoServantService extends CrudService<CampusinfoServantDao, CampusinfoServant> {
	@Autowired
	CampusinfoServantDao campusinfoServantDao;
	public CampusinfoServant get(String id) {
		return super.get(id);
	}
	
	public List<CampusinfoServant> findList(CampusinfoServant campusinfoServant) {
		return super.findList(campusinfoServant);
	}
	public CampusinfoServant getByName(CampusinfoServant campusinfoServant) {
		return campusinfoServantDao.getByName(campusinfoServant);
	}
	public CampusinfoServant getOrderCode(CampusinfoServant campusinfoServant) {
		return campusinfoServantDao.getOrderCode(campusinfoServant);
	}
	public Page<CampusinfoServant> findPage(Page<CampusinfoServant> page, CampusinfoServant campusinfoServant) {
		return super.findPage(page, campusinfoServant);
	}
	
	@Transactional(readOnly = false)
	public void save(CampusinfoServant campusinfoServant) {
		super.save(campusinfoServant);
	}
	
	@Transactional(readOnly = false)
	public void delete(CampusinfoServant campusinfoServant) {
		super.delete(campusinfoServant);
	}
	
}